package site.dao;

import java.sql.Connection;
import java.sql.SQLException;

import neoutil.CommonDao;
import site.entity.Role;

public class RoleDao extends CommonDao<Role, Long> {
	public RoleDao(Connection connection) {
		super(Role.class, connection);
	}

	public void save(Role role) throws SQLException {
		Object[] params = { role.getUuid(), role.getName(),
				role.getEntityStatus(), role.getEntityDatetime() };
		execute(SQLString.SQL_ROLE_INSERT, params);
	}
}
